package com.smartstate.dataManagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 电表
 */
@Data
public class ElectricMeter implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(value = "id", fill = FieldFill.INSERT)
    private String id;

    @ApiModelProperty(value = "时间戳")
    private String ts;

    @ApiModelProperty(value = "设备编码")
    private String deviceId;

    @ApiModelProperty(value = "设备表主键id")
    private String equipment_id;

    @ApiModelProperty(value = "对象id")
    private String objId;

    @ApiModelProperty(value = "有功电能")
    private float active_energy;
//    private float activeEnergy;

    @ApiModelProperty(value = "有电功能前一段时间差值")
    private float det_active_energy;
//    private float det_activeEnergy;

    @ApiModelProperty(value = "无功电能")
    private float reactive_energy;
//    private float reactiveEnergy;

    @ApiModelProperty(value = "无电功能前一段时间差值")
    private float det_reactive_energy;
//    private float det_reactiveEnergy;

    @ApiModelProperty(value = "视在能量")
    private float apparent_energy;
//    private float apparentEnergy;

    @ApiModelProperty(value = "视在能量前一段时间差值")
    private float det_apparent_energy;
//    private float det_apparentEnergy;


}
